priv = range->priv;
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
{
gint slider_length;
GtkAllocation slider_alloc, trough_alloc;
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
gtk_widget_get_content_allocation (priv->trough_widget, &trough_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
{
GtkAllocation slider_alloc;
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
priv->slide_initial_slider_position = slider_alloc.y;
{
GtkAllocation slider_alloc;
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
update_initial_slider_position (range, x, y, &slider_alloc);
update_zoom_state (range, TRUE);
}
priv->mouse_y = y;
gtk_range_update_mouse_location (range);
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
g_object_get (gtk_widget_get_settings (widget),
"gtk-primary-button-warps-slider", &primary_warps,
{
GtkAllocation trough_alloc;
- gtk_widget_get_margin_allocation (priv->trough_widget, &trough_alloc);
+ gtk_widget_get_outer_allocation (priv->trough_widget, &trough_alloc);
zoom = MIN(1.0, (priv->orientation == GTK_ORIENTATION_VERTICAL ?
trough_alloc.height : trough_alloc.width) /
{
GtkAllocation slider_alloc;
- gtk_widget_get_margin_allocation (priv->slider_widget, &slider_alloc);
+ gtk_widget_get_outer_allocation (priv->slider_widget, &slider_alloc);
if (priv->orientation == GTK_ORIENTATION_VERTICAL)
priv->slide_initial_slider_position = (zoom * (mouse_y - priv->slide_initial_coordinate_delta) - slider_alloc.y) / (zoom - 1.0);
!gtk_widget_is_drawable (child))
continue;
- gtk_widget_get_margin_allocation (child, &allocation);
+ gtk_widget_get_outer_allocation (child, &allocation);
if (gdk_rectangle_contains_point (&allocation, tx, ty))
{
margin.bottom + border.bottom;
}
-void
-gtk_widget_get_margin_allocation (GtkWidget *widget,
- GtkAllocation *allocation)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
- GtkBorder margin, border;
- GtkCssStyle *style;
-
- style = gtk_css_node_get_style (priv->cssnode);
- get_box_margin (style, &margin);
- get_box_border (style, &border);
-
- *allocation = priv->allocation;
-
- allocation->x += margin.left;
- allocation->y += margin.top;
- allocation->width -= margin.left + margin.right;
- allocation->height -= margin.top + margin.bottom;
-}
-
/**
* gtk_widget_get_allocated_width:
* @widget: the widget to query
GtkAllocation *allocation);
void gtk_widget_get_border_allocation (GtkWidget *widget,
GtkAllocation *allocation);
-void gtk_widget_get_margin_allocation (GtkWidget *widget,
- GtkAllocation *allocation);
void gtk_widget_get_outer_allocation (GtkWidget *widget,
GtkAllocation *allocation);
void gtk_widget_get_own_allocation (GtkWidget *widget,